﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:local="clr-namespace:ManagementTool" xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" x:Class="ManagementTool.MainPage"
    d:DesignHeight="768" d:DesignWidth="1024" mc:Ignorable="d">

    
    <Grid x:Name="LayoutRoot" Background="White">
        <sdk:TabControl x:Name="tabControl1" SelectionChanged="tabControl1_SelectionChanged">
            <sdk:TabItem Header="Visualization" x:Name="ux_VisualizationTab">
                <Grid >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="20" />
                        <RowDefinition Height="100" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <local:EnterpriseServiceBus x:Name="uxESB" Height="88" VerticalAlignment="Center" Width="900" Grid.Row="1" HorizontalAlignment="Center" Canvas.ZIndex="1001">
                        <local:EnterpriseServiceBus.Effect>
                            <DropShadowEffect BlurRadius="15" ShadowDepth="9"/>
                        </local:EnterpriseServiceBus.Effect>
                    </local:EnterpriseServiceBus>
                    <Canvas x:Name="uxServiceCanvas" Grid.Row="2"  MouseMove="service_MouseMove" MouseLeftButtonUp="service_MouseLeftButtonUp">
                        <Canvas.Background>
                            <SolidColorBrush />
                        </Canvas.Background>
                    </Canvas>
                </Grid>
        	</sdk:TabItem>
            <sdk:TabItem Header="Service Repository" Name="uxServiceRepositoryTab" MouseLeftButtonDown="uxServiceRepositoryTab_MouseLeftButtonDown">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="52" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="All services" Grid.Column="0" FontSize="40" TextAlignment="Center" />
                    <TextBlock Text="Routed services" Grid.Column="1" FontSize="40" TextAlignment="Center" />

                    <ListBox Grid.Row="1"  Name="uxRepositoryAllServices" />

                    <ListBox Grid.Column="1" Grid.Row="1"  Name="uxRepositoryRoutedServices" />
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="Logs">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="70" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <TextBlock Text="Live logs" Grid.Row="0" FontSize="40" TextAlignment="Center" />
                    <ListBox Name="listBox1" Grid.Row="1" BorderThickness="1" ItemsSource="{Binding}" FontSize="20"></ListBox>
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="Options">
                <Button Content="Rebind to services" Height="50" Name="uxBindToServices" Width="148" Click="uxBindToServices_Click" />
            </sdk:TabItem>
        </sdk:TabControl>
    </Grid>
</UserControl>
